'MagNifier2 by oigres P. Email oigres@postmaster.co.uk
'Based on the C++ tool Zoomin (Lupe?)
'New features :Resizeable form, new resolution, bug fix 12/sept/99
'All code written by oigres P.
'indented by indenter5 from http://www.BMSLtd.co.uk by Stephen Bullen
'
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Private Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function GetDesktopWindow Lib "user32" () As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Private Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal nIndex As Long) As Long
Private Const HORZRES = 8
Private Const VERTRES = 10
Private Type POINTAPI
x As Long
y As Long
End Type
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Const RDW_ERASE = &H4
Const RDW_INVALIDATE = &H1
Const SRCCOPY = &HCC0020
Const WM_PAINT = &HF
Dim frmH As Long, magnify As Integer
Private Sub Form_Load()
Call VScroll1_Change
'SetCapture Form1.hwnd
End Sub
Private Sub Form_Resize()
Form1.Cls 'clear rubbish between labels when resize